home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 07 - 1991 / 07.11 Nov 91 / Icon List source / CIconItemObj.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-22  |  698 b   |  27 lines  |  [TEXT/KAHL]

  1. /*    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  2.     Object List
  3.  
  4.     Defines an Icon List Item.
  5.     |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| */
  6.  
  7. #ifndef         CLASS_COBJECT
  8. #include    "CObject.h"
  9. #endif
  10.  
  11. #ifndef         CLASS_CITEMOBJ
  12. #include    "CItemObj.h"
  13. #endif
  14.  
  15. #define        CLASS_CICONITEMOBJ
  16.  
  17. /* :::::::::: list item object :::::::::: */
  18. struct CIconItemObj:CItemObj {
  19.                         /*** fields... */
  20.     int            id;                                                                    /* icon id number from res file */
  21.     Str255        name;                                                            /* icon name from res file */
  22.     Handle        bits;                                                                /* handle to the icon image */
  23.     
  24.                         /*** methods… */
  25.     void            DrawItem ( Boolean selected, Rect *dispR );        /* draw the icon item */
  26.     };
  27.